package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@ClassName Role
 *@Author jiangjiajia
 *@JDK-Version 1.8
 *@Date 2021/7/10 3:35 pm
 *@Version 1.0
 *@Description 必须描述类的业务用途
 
 **/

/**
 * 角色表
 */
@ApiModel(value = "com-qf-entity-Role")
@Data
@TableName(value = "`role`")
public class Role {
    /**
     * 主键
     */
    @TableId(value = "role_id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Long roleId;

    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "modified_time")
    @ApiModelProperty(value = "修改时间")
    private Date modifiedTime;

    /**
     * 创建人
     */
    @TableField(value = "create_account_id")
    @ApiModelProperty(value = "创建人")
    private Long createAccountId;

    /**
     * 修改人
     */
    @TableField(value = "modified_account_id")
    @ApiModelProperty(value = "修改人")
    private Long modifiedAccountId;

    /**
     * 逻辑删除标识(0、否 1、是)
     */
    @TableField(value = "deleted")
    @ApiModelProperty(value = "逻辑删除标识(0、否 1、是)")
    private Byte deleted;

    public static final String COL_ROLE_ID = "role_id";

    public static final String COL_ROLE_NAME = "role_name";

    public static final String COL_REMARK = "remark";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFIED_TIME = "modified_time";

    public static final String COL_CREATE_ACCOUNT_ID = "create_account_id";

    public static final String COL_MODIFIED_ACCOUNT_ID = "modified_account_id";

    public static final String COL_DELETED = "deleted";
}